package org.taobao.ibatiside.ui.action;

import org.eclipse.jface.dialogs.MessageDialog;

public abstract class OverviewDeleteAction extends OverviewAction {
	protected abstract boolean doDelete();
	protected void postDeletion(){
		
	}
	@Override
	public void run() {
		if (MessageDialog.openQuestion(viewer.getControl().getShell(), "Waring!!"," Are you sure ?")){
			if (doDelete()){
				postDeletion();
			}
		}
	}
}
